package com.inspur_video.inspur_video.dao;

import com.inspur_video.inspur_video.bean.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 小浩
 * @date 2018-07-25 14:18
 * @package com.inspur_video.inspur_video.dao
 * @description
 */
public interface UserDao extends JpaRepository<User,Integer> {

    //根据用户手机号查询
    User findUserByUPhoneNumber(String uPhoneNumber);
    //根据用户id查询
    User findUserByUId(int id);

    //根据用户名查询
    User findUserByUName(String username);

}
